//
//  MovieClass.m
//  UI20-XML
//
//  Created by 韩旭 on 16/8/10.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "MovieClass.h"

@implementation MovieClass
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"pageNo"]) {
        _pageNo = value;
    }
}
- (NSString *)description {
    if (_pageNo) {
        return [NSString stringWithFormat:@"%@", _pageNo];
    } else if (_pageSize) {
        return [NSString stringWithFormat:@"%@", _pageSize];
    } else if (_totalCount) {
        return [NSString stringWithFormat:@"%@", _totalCount];
    } else {
        return [NSString stringWithFormat:@"%@ - %@", _name, _actors];
    }
}
@end
